package com.party.core.dao.read.mall;

import com.party.common.paging.Page;
import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.mall.MallDataCount;
import com.party.core.model.mall.MallDataCountWithMember;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface MallDataCountReadDao extends BaseReadDao<MallDataCount> {

    List<MallDataCountWithMember> webListPage(@Param(value = "mallDataCountWithMember") MallDataCountWithMember mallDataCountWithMember,
                                              @Param(value = "params") Map<String, Object> params, Page page);

    List<MallDataCountWithMember> webListPageQuery(@Param(value = "mallDataCountWithMember") MallDataCountWithMember mallDataCountWithMember,
                                                   @Param(value = "params") Map<String, Object> params, Page page);

    Map<String, Object> getStatistics();

    MallDataCount findByMemberId(@Param("memberId") String memberId);
}
